-- GENERATED SPELL FOR [Forward Commander Kingston] --


function spell0_19310(pUnit, Event) --@Set Rails Flag,n/a--
pUnit:FullCastSpellOnTarget(35998,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19310', 560, 1)
end

function Sorts_19310(pUnit, Event)
local choix_sorts_19310 = math.random(0, 0)
if choix_sorts_19310 == 0 then
pUnit:RegisterEvent('spell0_19310', 1, 1)
end
end

function mob19310_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19310', math.random(1500, 3000), 1)
end

function mob19310_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19310_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19310_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19310, 1, 'mob19310_Action')
RegisterUnitEvent(19310, 2, 'mob19310_Leave')
RegisterUnitEvent(19310, 3, 'mob19310_Kill')
RegisterUnitEvent(19310, 4, 'mob19310_Die')
